<template>
    <div class="parent">
        Parent
        <Child></Child>
    </div>
</template>
<script setup>
import Child from './Child.vue';
import {defineExpose} from 'vue';
const parentName = 'parent';
defineExpose({
    parentName
});
</script>
<style>
.parent{
    border:5px solid red;
    width:300px;
    padding:10px;
}
</style>